#import sys,socket
# hostname=socket.gethostname()
# print("主机名：",hostname)
#
# IP=input("请你输入想查找的IP:")
# HOSTNAME=socket.gethostbyaddr(IP)
# print("此IP对应的计算机名:",HOSTNAME)

# 获取本机IP地址
import sys,socket
# host = socket.gethostbyname(socket.gethostname())
# # 获取ARP表
# sys.os.system('arp -a > temp.txt')
#
# with open('temp.txt') as fp:
#
#     for line in fp:
#
#      line = line.split()[:2]
#      if line and line[0].startswith(host[:4]) and (not line[0].endswith('255')):
#          print(':'.join(line))

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import scrapy
# from scapy.all import srp,Ether,ARP,conf
# ipscan='192.168.1.1/24'
#     try:
#         ans,unans = srp(Ether(dst="FF:FF:FF:FF:FF:FF")/ARP(pdst=ipscan),timeout=2,verbose=False)
#     except Exception,e:
#         print str(e)
# else:
#     for snd,rcv in ans:
#         list_mac=rcv.sprintf("%Ether.src% - %ARP.psrc%")
#         print list_mac

# import tkinter
# top = tkinter.Tk()
# top.mainloop()
import easygui
# user_response =easygui.msgbox("Hello,There!")
# print(user_response)
#按钮框
# flavor = easygui.buttonbox("what is your favorite ice cream flavor?",choices=['vanilla','Chocolate','Strawberry'])
# easygui.msgbox("You picked"+flavor)

#选择输入框
# flavor = easygui.choicebox("what is your favorite ice cream flavor?",choices=['vanilla','Chocolate','Strawberry'])
# easygui.msgbox("You picked"+flavor)

#使用输入框得到输入
flavor = easygui.enterbox("what is your favorite ice cream flavor?",default=' ')
easygui.msgbox("You picked"+flavor)